/**
 * 默认加载
 * @type {{init: Window.process.init, public: Window.process.public}}
 */
window.process = {
    init () {
        this.public();
    },
    callbackLogin(data){
        window.location.href='../index.html';
    },
    public () {
      //立即登录
      $('.login_btn').click(()=> {
        let api='/api/wx/login'
        let data={
          username:$('#username').val(),
          password:$('#password').val(),
          openid:''


        }
        postAjax(api,data,this.callbackLogin)
      });

    }
};

/**
 * 启动方法执行
 */
process.init();



